package com.app.ctzoverseas.network.api

import com.android.base_network.data.BaseResponse
import com.app.ctzoverseas.network.model.GetDataBean
import com.cardetective.shopcar.network.model.BindMobilePost
import com.cardetective.shopcar.network.model.UserInfoModel
import kotlinx.coroutines.flow.Flow
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * 首页数据接口
 * */
interface AccountApi {

//    @GET("/index/getData")
//    fun getData(): Flow<BaseResponse<GetDataBean>>
//
//    @GET("/index/getShopData")
//    fun getShopDataOnHome(
//        @Query("pageNum") pageNum: Int,
//        @Query("pageSize") size: Int = 5
//    ): Flow<BaseResponse<List<ShopListData>?>>

    @GET("/index/getBanner")
    fun getBannerList(): Flow<BaseResponse<List<GetDataBean.BannerInData>>>

    // 获取用户信息
    @GET("/v3/login/getUserInformation")
    fun getUserInfo(): Flow<BaseResponse<UserInfoModel>>


//    @GET("/shop/getShopList")
//    fun getShopList(
//        @Query("key") key: String = "",
//        @Query("pageNum") pageNum: Int,
//        @Query("pageSize") pageSize: Int = 5
//    ): Flow<BaseResponse<List<ShopListData>?>>
//
//    @GET("/shop/getShopDetail")
//    fun getStoreDetail(@Query("shopId") shopId: String): Flow<BaseResponse<StoreDetailData>>
//
//    @GET("/shop/getGoodsDetail")
//    fun getGoodsDetail(@Query("goodsId") goodsId: String): Flow<BaseResponse<GoodDetailData>>
}